package uni.call.app;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;

public class StartingUp extends Activity
{
	@Override
	public void onCreate(Bundle savedInstanceState) 
	{
		super.onCreate(savedInstanceState);
		setContentView(R.layout.starting_up);
		
		final int welcomeScreenDisplay = 150;
		
		Thread welcomeThread = new Thread() 
		{
			int wait = 0;

			@Override
			public void run()
			{
				try 
				{
					super.run();
		
					while (wait < welcomeScreenDisplay) 
					{
						sleep(100);
						wait += 100;
					}
				} 
				catch (Exception e) 
				{
					System.out.println("EXc=" + e);
				} 
				finally 
				{
					startActivity(new Intent(StartingUp.this,HomeActivity.class));
					finish();
				}
			}
		};
		welcomeThread.start();
	}
}